#include<stdio.h>
#include<stdlib.h>
#include<conio.h>

int find2(char N,char M)
{
	n=strlen(N);
	for(i=0; i<n; i++)
    {
    for (j=0; T[i+j]!='\0' && P[j]!= '\0' && T[i+j]==P[j]; j++) ;
    if (P[j] == '\0') found a match
    }
}
 
 
int  main()
 {
    char M="adsdfadagfaghfahgjsarewragfjsgjsgmcvhjtyijhgjd";
    char N="jhg";
    int i;
    i=find(N,M);
    printf("%d ",i);
    getch();
    return 0;
}
